/**
 * 插件集
 * @type {import("vue").Plugin[]}
 */
import router from '@/router'

import { componentsPlugin } from './components.js'
const plugins = [router, componentsPlugin]


/**
 * 批量注册插件
 * @param {import("vue")}
 */

export const usePlugins = app =>
    plugins.forEach(app.use, app)


/**
 * router=>app.user(router),app
 *
 * plugins.forEach(Bottom => app.use(componentsPlugins(app)=>{
 * components.forEach(app.use, app)
 *
 * }), app)
 *
 *  */

